{{include file="header.html"}}
{{include file="menu.html"}}
	<div class="clear"></div>
		<!-- 页面的内容  开始 -->
		<div class="select_type">
			<!-- 页面的内容  开始 -->
			<div class="display" style="border: 1px solid #dddddd;">
				<!-- 下拉选择框 -->
				<div class="content_title_bar">
					<span>&diams;请选择查看</span>
					<div class="select_div" style="float:left;margin-left:10px;">
					    <select name="year" class="year" style="min-width:120px;">
					  		<option value="">--毕业年份-</option>
							{{foreach from=$year item=val key=key}}
								<option value="{{$key}}" name="year" {{if $key == $smarty.get.year}} selected = "selected" {{/if}}>{{$val.title}}</option>
							{{/foreach}}
					  	</select>
					</div>
					<div class="select_div" style="float:left;margin-left:10px;">
					   <select name="major" class="major" style="min-width:120px;">
					  		<option value="">--专业--</option>
							{{foreach from=$major item=val key=key}}
								<option value="{{$key}}" name="major" {{if $key == $smarty.get.major}} selected = "selected" {{/if}}>{{$val.title}}</option>
							{{/foreach}}
					  	</select>
					</div>
					<span>毕业生的就业情况</span>
				</div>
				<!-- 最后总结这些年来的公司趋势图 -->
				{{if $result.option3}}
					<div class="content_title_bar">
						<span>&diams;毕业跟踪趋势走向图</span>
					</div>
					<div id="container" style="height: 300px"></div>

					<script type="text/javascript">
						var dom = document.getElementById("container");
						var myChart = echarts.init(dom);
						var app = {};
						option = null;
						option = {{$result.option3.0}};
						if (option && typeof option === "object") {
						    myChart.setOption(option, true);
						}
					</script>
				{{/if}}
				<!-- 平均工资走势图 -->
				{{if $result.option4}}
					<div class="content_title_bar">
						<span>&diams;毕业生平均工资走向图</span>
					</div>
					<div id="container_avg" style="height: 300px"></div>
			       	<script type="text/javascript">
					var dom = document.getElementById("container_avg");
					var myChart = echarts.init(dom);
					var app = {};
					option = null;
					option = {{$result.option4.0}};
					if (option && typeof option === "object") {
					    myChart.setOption(option, true);
					}
					</script>
				{{/if}}
				<!-- 最高工资走势图 -->
				{{if $result.option5}}
					<div class="content_title_bar">
						<span>&diams;毕业生最高工资走向图</span>
					</div>
					<div id="container_max" style="height: 300px"></div>
			       <script type="text/javascript">
					var dom = document.getElementById("container_max");
					var myChart = echarts.init(dom);
					var app = {};
					option = null;
					option = {{$result.option5.0}};
					if (option && typeof option === "object") {
					    myChart.setOption(option, true);
					}
			       	</script>
			    {{/if}}
				<!-- 毕业后几年来的 情况 -->
				{{if $result.table}}
					{{foreach item=val from=$result.table key=key}}
					<div class="content_title_bar">
						<span>&diams;毕业后第{{$key}}年</span>
					</div>
					{{if $menu.act == 'salary'}}
						<table class="content_table">
							<tr>  
								<th>工资情况分布</th>
								<th>小于3000</th>
								<th>3000-4000</th>
								<th>4000-5000</th>
								<th>5000-6000</th>
								<th>6000-7000</th>
								<th>7000-8000</th>
								<th>8000-9000</th>
								<th>9000-10000</th>
								<th> 10000以上</th>
							</tr>
							<tr>
								<th>人数</th>
								<td>{{$val.price_3}}</td>
								<td>{{$val.3_price_4}}</td>
								<td>{{$val.4_price_5}}</td>	
								<td>{{$val.5_price_6}}</td>
								<td>{{$val.6_price_7}}</td>
								<td>{{$val.7_price_8}}</td>
								<td>{{$val.8_price_9}}</td>
								<td>{{$val.9_price_10}}</td>
								<td>{{$val.10_price}}</td>	
							</tr>
							<tr>
								<th>平均工资</th>
								<td colspan="9">{{$val.avg_price}}</td>
							</tr>
							<tr>
								<th>最高工资</th>
								<td colspan="9">{{$val.max_price}}</td>
							</tr>
						</table>
					{{elseif $menu.act == 'company'}}
						<table class="content_table">
							<tr>  
								<th>公司融资情况</th>
								<th>未融资</th>
								<th>天使轮</th>
								<th>A轮</th>
								<th>B轮</th>
								<th>C轮</th>
								<th>D轮及以上</th>
								<th>上市公司</th>
								<th>不需要融资</th>
							</tr>
							<tr>
								<th>人数</th>
								<td>{{$val.0}}</td>
								<td>{{$val.1}}</td>
								<td>{{$val.2}}</td>	
								<td>{{$val.3}}</td>
								<td>{{$val.4}}</td>
								<td>{{$val.5}}</td>
								<td>{{$val.6}}</td>
								<td>{{$val.7}}</td>
								<td>{{$val.8}}</td>	
							</tr>
						</table>
					{{elseif $menu.act == 'employment'}}
						<table class="content_table">
						<tr>  
							<th>就业创业情况</th>
							<th>就业</th>
							<th>创业</th>
							<th>升学</th>
						</tr>

						<tr>
							<th>人数</th>
							<td>{{$val.job}}</td>
							<td>{{$val.doing}}</td>
							<td>{{$val.school}}</td>
						</tr>
						</table>
					{{elseif $menu.act == 'related'}}
					<table class="content_table">
						<tr>  
							<th>专业的相关度</th>
							<th>不相关</th>
							<th>有点相关</th>
							<th>挺多相关</th>
							<th>完全相关</th>
						</tr>

						<tr>
							<th>人数</th>
							<td>{{$val.no}}</td>
							<td>{{$val.bit}}</td>
							<td>{{$val.lot}}</td>
							<td>{{$val.whole}}</td>
						</tr>
					</table>
					{{/if}}
		 			<div id="container{{$key}}" style="height: 100%;width:{{if $menu.act == 'employment'}}300px{{elseif $menu.act == 'related'}}400px{{else}}800px{{/if}};height:300px; border: 1px solid #dddddd;{{if $menu.act == 'employment' || $menu.act == 'related'}}float:left{{/if}}"></div>
			        <script type="text/javascript">
			        	var id = 'container'+{{$key}};
						var dom = document.getElementById(id);
						var myChart = echarts.init(dom);
						var app = {};
						option = null;
						option = {{$result.option.$key}};
						if (option && typeof option === "object") {
						    myChart.setOption(option, true);
						}
			        </script>
					<!-- 环形图 -->
					<div id="container_ring{{$key}}" style="height: 300px;{{if $menu.act == 'employment' || $menu.act == 'related'}}width:400px;float:left{{/if}}"></div>
					<script type="text/javascript">
						var id2 = 'container_ring'+{{$key}};
						var dom = document.getElementById(id2);
						var myChart = echarts.init(dom);
						var app = {};
						option = null;
						app.title = '环形图';
						option = {{$result.option2.$key}};
						if (option && typeof option === "object") {
						    myChart.setOption(option, true);
						}
		      		</script>
		      		<div class="clear"></div>
					{{/foreach}}
				{{/if}}
			</div>	
		</div>
	</div>
	<!-- 页面的内容  结束 -->

	<!-- 页面的底部  开始 -->
{{include file="footer.html"}}
